<?php $baseurl=Configure::read('App.baseUrl'); ?>
<style>
#frmdiv{
       width:80%;
       margin-top:50px;
       margin-left:auto;
       margin-right:auto;
    }
 #error{
    width:100%;
    color:#ffffff;
    background-color:red;
 }
 div.title{
    color:#ffffff;
    font-size:1.2em;
    text-align:left;
    padding-left:5px;
 }
 input.txt{
    width:100%;
    border:2px solid #004080;
    color:#000000;
    font-size:1.5em;
 }
 textarea{
    width:100%;
    height:500px;
    border:2px solid #004080;
    color:#000000;
    font-size:1.2em;
 }
  input.button{
        border:1px solid;
        border-color:#ffffff #000000 #000000 #ffffff;
        width:100px;
        font-size:1.3em;
        margin-left:auto;
        margin-right:auto;
        background-color:#032b52;
        color:#ffffff;
    }
 
</style>
<div id='frmdiv'>
<div id='error'><?php if(!empty($errmsg)) echo $errmsg ?></div>
<form id='TemplateAddForm' action='<?php echo $baseurl.'admin/templates/edit' ?>' method='post'>
<div class='title'>模板文件名(<?php echo $fn ?>)</div>
<div><input id='filename' name='filename'  type='hidden' value='<?php echo $fn ?>'></div>
<div class='title'>模板内容代码</div>
<div><textarea id='content' name='content' class='textarea'><?php 
echo $content;
?></textarea></div>
<input type='submit' class='button' value='提交'></input> 
</form>
</div>